package com.ifinc.common.web.controller;

import java.util.Map;

/**
 * User: luotao
 * Date: 13-6-3
 * Time: 下午9:24
 */
public interface Action {
    String json="json";

    String forward ="forward";

    String redirect="redirect";

    public String execute(Map<String, String> header
            , Map<String, String> reqParam
            , SessionMap<String, Object> sessionMap
            , Map<String,Object> result);

//    public String doResult(Map<String, Object> executeResult, SessionMap<String, Object> sessionMap);

    public void validate(Map<String, String> header, Map<String, String> repParam, SessionMap<String, Object> sessionMap);

    public String returnType();

    public String exception(Map<String, String> reqParam, Map tipMap, SessionMap<String, Object> sessionMap, Exception e);
}
